import 'dart:convert';
/// code : 0
/// message : "操作成功"
/// data : {"noPayCount":4,"noPayAmount":180533,"payedCount":1,"payedAmount":117912,"totalAmount":324302,"totalCount":5}

SalesStatisticsResp salesStatisticsRespFromJson(String str) => SalesStatisticsResp.fromJson(json.decode(str));
String salesStatisticsRespToJson(SalesStatisticsResp data) => json.encode(data.toJson());
class SalesStatisticsResp {
  SalesStatisticsResp({
      this.code, 
      this.message, 
      this.data,});

  SalesStatisticsResp.fromJson(dynamic json) {
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? SalesStatisticsData.fromJson(json['data']) : null;
  }
  num? code;
  String? message;
  SalesStatisticsData? data;
SalesStatisticsResp copyWith({  num? code,
  String? message,
  SalesStatisticsData? data,
}) => SalesStatisticsResp(  code: code ?? this.code,
  message: message ?? this.message,
  data: data ?? this.data,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['message'] = message;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }

}

/// noPayCount : 4
/// noPayAmount : 180533
/// payedCount : 1
/// payedAmount : 117912
/// totalAmount : 324302
/// totalCount : 5

SalesStatisticsData dataFromJson(String str) => SalesStatisticsData.fromJson(json.decode(str));
String dataToJson(SalesStatisticsData data) => json.encode(data.toJson());
class SalesStatisticsData {
  SalesStatisticsData({
      this.noPayCount = 0,
      this.noPayAmount = 0,
      this.payedCount = 0,
      this.payedAmount = 0,
      this.totalAmount = 0,
      this.totalCount = 0,});

  SalesStatisticsData.fromJson(dynamic json) {
    noPayCount = json['noPayCount'] ?? 0;
    noPayAmount = json['noPayAmount'] ?? 0;
    payedCount = json['payedCount'] ?? 0;
    payedAmount = json['payedAmount'] ?? 0;
    totalAmount = json['totalAmount'] ?? 0;
    totalCount = json['totalCount'] ?? 0;
  }
  num? noPayCount;
  num? noPayAmount;
  num? payedCount;
  num? payedAmount;
  num? totalAmount;
  num? totalCount;
SalesStatisticsData copyWith({  num? noPayCount,
  num? noPayAmount,
  num? payedCount,
  num? payedAmount,
  num? totalAmount,
  num? totalCount,
}) => SalesStatisticsData(  noPayCount: noPayCount ?? this.noPayCount,
  noPayAmount: noPayAmount ?? this.noPayAmount,
  payedCount: payedCount ?? this.payedCount,
  payedAmount: payedAmount ?? this.payedAmount,
  totalAmount: totalAmount ?? this.totalAmount,
  totalCount: totalCount ?? this.totalCount,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['noPayCount'] = noPayCount;
    map['noPayAmount'] = noPayAmount;
    map['payedCount'] = payedCount;
    map['payedAmount'] = payedAmount;
    map['totalAmount'] = totalAmount;
    map['totalCount'] = totalCount;
    return map;
  }

}